'Declaration<ExtensionAttribute()> <JetBrains.Annotations.NotNullAttribute()> Public Overloads Shared Function WriteValueAction(Of TValue)( _ ByVal metric As SparkplugMetric, _ ByVal dataType As SparkplugDataType, _ ByVal writeValueAction As Action(Of TValue) _ ) As SparkplugMetric
'UsageDim metric As SparkplugMetric Dim dataType As SparkplugDataType Dim writeValueAction As Action(Of TValue) Dim value As SparkplugMetric value = SparkplugMetricExtension.WriteValueAction(Of TValue)(metric, dataType, writeValueAction)
[Extension()] [JetBrains.Annotations.NotNull()] public static SparkplugMetric WriteValueAction<TValue>( SparkplugMetric metric, SparkplugDataType dataType, Action<TValue> writeValueAction )
[Extension()] [JetBrains.Annotations.NotNull()] public: static SparkplugMetric^ WriteValueActiongeneric<typename TValue> ( SparkplugMetric^ metric, SparkplugDataType dataType, Action<TValue^>^ writeValueAction )
Parameters
- metric
- The Sparkplug metric that will perform the operation.
The value of this parameter cannot be
null(Nothingin Visual Basic). - dataType
- The Sparkplug data type of the metric.
- writeValueAction
- The write value action, i.e. the action that accepts the value to be written and performs the write operation.
The value of this parameter cannot be
null(Nothingin Visual Basic).
Type Parameters
- TValue
- The type of the value of the Sparkplug metric.
Return Value
This method never returns null (Nothing in Visual Basic).